
#define PPS_PIN 2

void setup()
{
  Serial.begin(9600);
  Serial1.begin(9600);
  pinMode(PPS_PIN, INPUT);  
}

void loop()
{
    if(true | digitalRead(PPS_PIN)==1)
    {
      Serial.println(" > data start > ");
      while(Serial1.available())
      {
        Serial.print(Serial1.read(),HEX);
        Serial.print(", ");
      }
      Serial.println();
      Serial.println("< data end < ");
    }
    delay(50);
    
}
